package model

import (
	"database/sql"
	"time"
)

// OaCars 车辆
type OaCars struct {
	ResCommon
	UserId   int64
	User     ResUsers
	Sequence int
	Name     string
	Number   string
	Model    string
	Type     string
}

// OaCarsCases 用车审批
type OaCarsCases struct {
	ResCommon
	CarId          int64
	Car            OaCars
	ApplicantId    int64
	Applicant      ResUsers
	UserId         sql.NullInt64
	User           ResUsers
	DepartmentId   sql.NullInt64
	PlaceStart     string
	PlaceEnd       string
	Urgency        string
	TimeStart      sql.NullTime
	TimeEnd        sql.NullTime
	ApprovalStatus string
}

// OaRewardPunishment 奖惩
type OaRewardPunishment struct {
	ResCommon
	EmployeeId   int64
	DepartmentId sql.NullInt64
	Cases        string //类型
	Type         string //奖励/惩罚
	Thing        string //物品
	Date         sql.NullTime
	Status       string
	Money        float64 //钱
	FileName     string
}

// OaOfficeUse 办公用品申领
type OaOfficeUse struct {
	ResCommon
	GoodsId      int64
	Goods        OaOfficeStock
	KeeperId     int64
	Keeper       HrEmployee
	DepartmentId sql.NullInt64
	Status       string
	PlaceKeep    string
	Date         time.Time
	Money        float64
	Number       int
	OperatorId   int64
	Operator     HrEmployee
	Use          string
}
type OaOfficeStock struct {
	ResCommon
	Name         string
	Number       int
	OperatorId   sql.NullInt64
	DepartmentId sql.NullInt64
	Stockroom    sql.NullString
	Type         string
	Model        sql.NullString
	Unit         string
	Remark       sql.NullString
	TimeInStock  time.Time
	PriceUnity   float64
	PriceTotal   float64
}
